package com.ctgu.chatapp.view.fragment.Start

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider
import com.ctgu.chatapp.R
import com.ctgu.chatapp.databinding.FragmentStep1Binding
import com.ctgu.chatapp.viewModel.StartViewModel

class SignStep1 : Fragment() {

    lateinit var binding: FragmentStep1Binding

    val viewModel by lazy { ViewModelProvider(requireActivity())[StartViewModel::class.java] }

    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View {
        binding = DataBindingUtil.inflate(inflater, R.layout.fragment_step1, container, false)
        binding.viewModel = viewModel
        binding.lifecycleOwner = this
        return binding.root
    }
}